package guoanmaker.operator.business.model;



import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonManagedReference;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_provide_business")
public class ProviderBusiness extends IdEntity {

	@Column(name="business_name")
	private String businessName;//商户名称
	@Column(name="identity_type")
	private Integer IdentityType;//身份类型 (企业服务商)
	@Column(name="company_logo")
	private String companyLogo;//公司logo
	@Column(name="licens_phone")
	private String LicensPhone;
	@Column(name="company_introduce")
	private String companyIntroduce;//公司介绍
	@Column(name="company_name")
	private String companyName;
	@Column(name="company_resgiser_mark")
	private String companyResgiserMark;//营业执照注册号
	@Column(name="company_license_replica")
	private String companyLicenseReplica;//营业执照副本扫描件
	@Column(name="company_other_replica")
	private String companyOtherReplica;//手持身份证正面照片
	@Column(name="company_corporation_name")
	private String companyCorporationName;//企业联系人真实姓名
	@Column(name="voucher_type")
	private Integer voucherType;//证件类型  
	@Column(name="voucher_effective_type")
	private Integer voucherEffectiveType;//证件有效期类型     0----长期   1----定时
	@Column(name="voucher_effective_date")
	private Date voucherEffectiveDate;//证件有效日期
	@Column(name="company_corporationidcard_no")
	private String companyCorporationIDCardNo;//法人身份证号
	@Column(name="company_corporationidcard_no_front")
	private String companyCorporationIDCardNoFront;//身份证照片正面
	@Column(name="company_corporationidcard_no_contrary")
	private String companyCorporationIDCardNoContrary;//身份证反面
	@Column(name="company_adress")
	private String companyAdress;
	@Column(name="company_province")
	private String companyProvince;
	@Column(name="company_city")
	private String companyCity;
	@Column(name="company_area")
	private String companyArea;
	@Column(name="bus_agelimit")
	private String busAgelimit;//营业年限类型
	@Column(name="bus_agelimit_date")
	private Date busAgelimitDate;//营业年限日期
	@Column(name="org_code_card")
	private String orgCodeCard;//组织机构代码证
	@Column(name="org_code_card_picture")
	private String orgCodeCardPicture;//组织机构代码证图片
	@Column(name="commoditys")
	private String commoditys;//服务项列表
	@Column(name="create_Date")
	private Date   createDate;
	@Column(name="company_industry")
    private  String companyindustry; //企业行业
	@Column(name="company_regist_time")
    private  Date companyRegistTime;//企业注册时间
	@Column(name="company_registered_capital")
    private  String  companyRegisteredCapital;//注册资本
	@Column(name="companyfront_deskphone")
    private  String   companyfrontDeskphone;//前台电话
	@Column(name="company_email")
    private  String   companyEmail;//企业邮箱
    @Column(name="company_enterprise_scale")
    private  String   companyEnterpriseScale;//企业规模
    @Column(name="company_wechat_public")
    private  String   companyWeChatpublic;//企业公众号
    @Column(name="companytag")
    private String    companytag;//公司标记
    @Column(name="bus_number")
    private String busNumber;//商户编号
    
    @Column(name="refusedtime")
    private Date  refusedtime;//拒绝时间（审核）
    @Column(name="processtime")
    private Date  processtime;//通过时间（审核）
    
    @Column(name="service_range")
    private Integer serviceRange; //  服务种类审核  1---待审核  2---审核成功  3----审核失败
    
    @Column(name="service_processtime")
    private Date serviceProcesstime;//服务种类通过时间
    
    @Column(name="service_refusetime")
    private Date  serviceRefusetime; //服务拒绝时间
 
	private Integer isRoomServer; //是否提供空间服务 1:提供 2:不提供
	private String new_commoditys;//修改服务项列表
	
	private String serviceAreas;//服务地区
	@OneToOne 
	private PersonalUser personalUser;

	

	public ProviderBusiness(String companyName, String commoditys, String busNumber, Date serviceProcesstime,
			Date serviceRefusetime, PersonalUser personalUser) {
		super();
		this.companyName = companyName;
		this.commoditys = commoditys;
		this.busNumber = busNumber;
		this.serviceProcesstime = serviceProcesstime;
		this.serviceRefusetime = serviceRefusetime;
		this.personalUser = personalUser;
	}


	@Override
	public String toString() {
		return "ProviderBusiness [businessName=" + businessName + ", IdentityType=" + IdentityType + ", companyLogo="
				+ companyLogo + ", LicensPhone=" + LicensPhone + ", companyIntroduce=" + companyIntroduce
				+ ", companyName=" + companyName + ", companyResgiserMark=" + companyResgiserMark
				+ ", companyLicenseReplica=" + companyLicenseReplica + ", companyOtherReplica=" + companyOtherReplica
				+ ", companyCorporationName=" + companyCorporationName + ", voucherType=" + voucherType
				+ ", voucherEffectiveType=" + voucherEffectiveType + ", voucherEffectiveDate=" + voucherEffectiveDate
				+ ", companyCorporationIDCardNo=" + companyCorporationIDCardNo + ", companyCorporationIDCardNoFront="
				+ companyCorporationIDCardNoFront + ", companyCorporationIDCardNoContrary="
				+ companyCorporationIDCardNoContrary + ", companyAdress=" + companyAdress + ", companyProvince="
				+ companyProvince + ", companyCity=" + companyCity + ", companyArea=" + companyArea + ", busAgelimit="
				+ busAgelimit + ", busAgelimitDate=" + busAgelimitDate + ", orgCodeCard=" + orgCodeCard
				+ ", orgCodeCardPicture=" + orgCodeCardPicture + ", commoditys=" + commoditys + ", createDate="
				+ createDate + ", companyindustry=" + companyindustry + ", companyRegistTime=" + companyRegistTime
				+ ", companyRegisteredCapital=" + companyRegisteredCapital + ", companyfrontDeskphone="
				+ companyfrontDeskphone + ", companyEmail=" + companyEmail + ", companyEnterpriseScale="
				+ companyEnterpriseScale + ", companyWeChatpublic=" + companyWeChatpublic + ", companytag=" + companytag
				+ ", busNumber=" + busNumber + ", refusedtime=" + refusedtime + ", processtime=" + processtime
				+ ", serviceRange=" + serviceRange + ", serviceProcesstime=" + serviceProcesstime
				+ ", serviceRefusetime=" + serviceRefusetime + ", isRoomServer=" + isRoomServer + ", new_commoditys="
				+ new_commoditys + ", personalUser=" + personalUser + "]";
	}


	
	


}
